package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the rehire database table.
 * 
 */
@Entity
@NamedQuery(name="Rehire.findAll", query="SELECT r FROM Rehire r")
public class Rehire implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="rehire_id")
	private int rehireId;

	@Column(name="rehire_emstate")
	private String rehireEmstate;

	@Column(name="rehire_source")
	private String rehireSource;

	@Temporal(TemporalType.DATE)
	private Date rehire_Submitime;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="staff_id")
	private Staff staff;

	public Rehire() {
	}

	public int getRehireId() {
		return this.rehireId;
	}

	public void setRehireId(int rehireId) {
		this.rehireId = rehireId;
	}

	public String getRehireEmstate() {
		return this.rehireEmstate;
	}

	public void setRehireEmstate(String rehireEmstate) {
		this.rehireEmstate = rehireEmstate;
	}

	public String getRehireSource() {
		return this.rehireSource;
	}

	public void setRehireSource(String rehireSource) {
		this.rehireSource = rehireSource;
	}

	public Date getRehire_Submitime() {
		return this.rehire_Submitime;
	}

	public void setRehire_Submitime(Date rehire_Submitime) {
		this.rehire_Submitime = rehire_Submitime;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}